const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    open: true,

    allowedHosts: "all",
    proxy: {
      "/oauth/*": {
        changeOrigin: true,
        target: "https://aip.baidubce.com",
      },
      "/wenxinworkshop/*": {
        changeOrigin: true,
        target: "https://aip.baidubce.com/rpc/2.0/ai_custom/v1",
      },
      "/automation/*": {
        changeOrigin: true,
        target: "http://dapi.sjvip.cn",
      },
      "/text_to_voice/*": {
        changeOrigin: true,
        target: "http://fanyi.985jiaoyi.com",
      },
    },
  },
});
